package com.example.jh352160.surfingtv.starsight;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

import com.example.jh352160.surfingtv.R;


public class BlankFragment extends Fragment implements View.OnClickListener {


    public BlankFragment() {
        // Required empty public constructor
    }


//    public static BlankFragment newInstance() {
//        BlankFragment fragment = new BlankFragment();
//
//        return fragment;
//    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        //View view =  inflater.inflate(R.layout.starsight_page, container, false);
        View view = inflater.inflate(R.layout.fragment_blank, container, false);
        //ImageView button = ((ImageView) view.findViewById(R.id.textView));
        Button button = (Button) view.findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(getActivity(), "hello", Toast.LENGTH_SHORT).show();
            }
        });


        return view;
    }

    @Override
    public void onClick(View view) {

    }
}
